<template>
  <van-picker ref="orderType"
              show-toolbar
              :visible-item-count="2"
              :columns="orderPickerTypes"
              @confirm="handleConfirmOrderType"
              @cancel="handleClose"/>
</template>

<script>'vant/popup/index'
import VanPicker from 'vant/picker/index'
export default {
  name: 'OrderPicker',
  components: { VanPicker },
  mixins: [],
  props: {
    popupPosition: String
  },
  data () {
    return {
      orderTypes: [
        { name: '全部订单',value: '' },
        { name: '活动订单',value: '' }
      ]
    }
  },
  computed: {
    orderPickerTypes () {
      return this.orderTypes.map(t => t.name)
    }
  },
  methods: {
    handleClose (e) {
      this.$emit('close',e)
    },
    handleConfirmOrderType () {

    }
  }
}
</script>

<style lang="less">
</style>